// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import router from './router'
import './assets/iconfont/iconfont.css'
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import components from "./components";
import axios from "axios"
import willOpen from "@/api/GlobalMethods";
import globalVariable from '@/api/GlobalVariable';
import EVueContextmenu from 'e-vue-contextmenu'

Vue.use(EVueContextmenu);
Vue.prototype.globalVariable = globalVariable;
Vue.use(willOpen);
Vue.prototype.$axios = axios;
Vue.use(ElementUI);
Vue.use(VueQuillEditor);
Vue.use(components.myTree);
Vue.use(components.targetTree);
Vue.use(components.personalInformation);

Vue.directive('title', {
  inserted: function (el, binding) {
    document.title = el.title
  }
});
new Vue({
  el: '#app',
  render: h => h(App),
  router: router
});

Vue.config.productionTip = false;
